package com.songlanyun.modules.minio.controller.admin;

import com.songlanyun.common.annotation.AuthIgnore;
import com.songlanyun.common.utils.R;
import com.songlanyun.modules.minio.service.MinioService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;

import javax.annotation.Resource;

//import org.apache.shiro.authz.annotation.RequiresPermissions;


/**
 * minio
 *
 * @author wuchao
 * @email sunlightcs@gmail.com
 * @date 2021-03-30 15:54:03
 */
//@RestController
//@RequestMapping("admin/minio")
public class MinioAdminController {

//    @Resource
//    private MinioService minioService;
//
//    /**
//     * 上传文件
//     */
//    @PostMapping("/upload")
//    public R info(@RequestParam("file") MultipartFile file) {
//        return R.ok().put("data", minioService.upload(file));
//    }

}
